package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.MemberCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.MemberLevel;
import com.njtoyo.taxi.admin.mapper.master.enums.MemberState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author Dell
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Member对象", description="会员表")
@Accessors(chain = true)
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID/司机ID")
    private Long refId;

    @ApiModelProperty(value = "会员类型")
    private MemberCategory category;

    @ApiModelProperty(value = "状态")
    private MemberState state;

    @ApiModelProperty(value = "会员等级")
    private MemberLevel level;

    @ApiModelProperty(value = "总积分")
    private Long point;

    @ApiModelProperty(value = "有效积分")
    private Long validPoint;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;
}
